package com.bupt.vueblog.service;

import com.bupt.vueblog.domain.dto.DetailInfoDTO;
import com.bupt.vueblog.domain.entity.Comment;
import com.bupt.vueblog.domain.entity.Relation;
import com.bupt.vueblog.domain.vo.BriefCommentVO;
import com.bupt.vueblog.domain.vo.CommentVO;

import java.util.List;

/**
 * @author 谭继好
 * @Description
 * @date 2024-04-09 13:42
 */
public interface CommentService {

    List<CommentVO> getByArticle(Integer userId, Integer articleId);

    List<BriefCommentVO> getByUserArticles(Integer userId);

    List<BriefCommentVO> getByUserComments(Integer userId);

    List<BriefCommentVO> getByUser(int userId);

    void insert(Comment comment);

    void changeInfo(DetailInfoDTO data);

    void addNum(Relation data);

    void subNum(Relation data);

    void delete(Integer id, Integer articleId);

    void deleteUser(Integer userId);

    // 删除博客，评论保留，不予删除
//    void deleteArticle(Integer articleId);
}
